package com.zzt.spider.task;

import com.zzt.spider.service.SpiderService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SpiderTask {
//    private static final Logger log = LoggerFactory.getLogger(SpiderTask.class);
//
//    @Autowired
//    private SpiderService spiderService;
//
//    @Scheduled(fixedDelay = 2*60*1000)
//    public void run() {
//        log.info("\ud83d\udd52 spiderService.startSpider() 即将执行");
//        this.spiderService.startSpider();
//        log.info("✅ spiderService.startSpider() 执行结束");
//    }
}
